﻿package  
{
	import chassis.*;
	import interior.*;
	import engine.*;
	import otherparts.*;
	import types.EngineType;
	
	/**
	$(CBI)* ...
	$(CBI)* @author Sentinel
	$(CBI)*/
	public class Vehicle
	{
		
		//Mains
		//Engine
		private var chassisMain:ChassisMain;
		private var engineMain:Engine;
		private var fuelTank:FuelTank;
		private var battery:Battery;
		private var fuelHose:Hose;
		
		
		//Interiors
		private var clutchPedal:ClutchPedal;
		private var brakePedal:BrakePedal;
		private var gasPedal:GasPedal;
		private var buttons:Vector.<Switch>;
		private var cdPlayer:CDPlayer;
		private var gauge:Gauge;
		private var shifter:Shifter;
		private var steeringWheel:SteeringWheel;
		private var fuelPump:FuelPump;
		
		
		
		public function Vehicle() 
		{
			chassisMain = new ChassisMain();
			fuelTank = new FuelTank();
			battery = new Battery();
			
			fuelPump = new FuelPump();
			
			fuelHose = new Hose();
			fuelHose.input = fuelTank;
			fuelHose.output = fuelPump;
			
			engineMain = new Engine();
			engineMain.fuelSource = fuelHose.output as FuelPump;
			engineMain.battery = battery;
			engineMain.type = EngineType.GASOLINE;
			engineMain
			
			start();
		}
		
		private function start():void
		{
			
		}
		
	}

}